#include "math_lib.h"
#include <cmath>

namespace MathLib {

const double PI = 3.14159265358979323846;

double Geometry::circleArea(double radius) {
    return PI * radius * radius;
}

double Geometry::rectangleArea(double width, double height) {
    return width * height;
}

double Geometry::triangleArea(double base, double height) {
    return 0.5 * base * height;
}

double Geometry::sphereVolume(double radius) {
    return (4.0 / 3.0) * PI * radius * radius * radius;
}

} // namespace MathLib